import {
  getRequest,
  postRequest,
  deleteRequest,
  putRequest
} from '@/libs/request'

export const housingTypeList = params => {
  return getRequest('/community/housing-type', params)
}

export const housingType = (id, params) => {
  return getRequest('/community/housing-type/' + id, params)
}

export const housingTypeCreate = params => {
  return postRequest('/community/housing-type/', params)
}

export const housingTypeDelete = (id, params) => {
  return deleteRequest('/community/housing-type/' + id, params)
}

export const housingTypeDeletes = params => {
  return deleteRequest('/community/housing-type/delete/', params)
}

export const housingTypeEdit = (id, params) => {
  return putRequest('/community/housing-type/' + id, params)
}
